package com.zhengsr.latte.utils;

import android.content.res.Resources;
import android.util.DisplayMetrics;

import com.zhengsr.latte.app.Latte;

/**
 * Created by zhengshaorui on 2018/4/8.
 */

public class DimenUtils {

    public static int getScreenWidth(){
        Resources resources = Latte.getApplication().getResources();
        DisplayMetrics dm = resources.getDisplayMetrics();
        return dm.widthPixels;
    }

    public static int getScreenHeight(){
        Resources resources = Latte.getApplication().getResources();
        DisplayMetrics dm = resources.getDisplayMetrics();
        return dm.heightPixels;
    }
}
